package com.be.beadmin.basicData.entity;

import com.be.beadmin.common.entity.BaseEntity;
import lombok.Getter;
import lombok.Setter;

import javax.persistence.*;

/**
 * @author chenwei
 * @date 2/23/2023 2:17 PM
 * 工作站点
 */
@Entity
@Table(name="T_BASEDATA_WORKSTATION")
@Getter
@Setter
public class Workstation extends BaseEntity {
    @Column(name = "WorkstationName", columnDefinition = "VARCHAR(32) COMMENT '工作站点名称' ")
    private String workstationName;

    @Column(name = "WorkstationCode", columnDefinition = "VARCHAR(32) COMMENT '工作站点编码' ")
    private String workstationCode;

    @Column(name = "WorkstationDesc", columnDefinition = "VARCHAR(32) COMMENT '工作站点描述' ")
    private String workstationDesc;

    @ManyToOne(fetch = FetchType.LAZY,cascade = CascadeType.ALL)
    @JoinColumn(name = "WORKCENTER_ID",columnDefinition = "VARCHAR(45) COMMENT '工作中心' ")
    private WorkCenter workCenter;
}
